home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / gfx / x11 / xfig.lha / doc / FORMAT1.3 next >
Text File  |  1994-09-07  |  2KB  |  94 lines

  1. The following is the format of fig output (fig 1.3).
  2.  
  3. The first line consists of four number:
  4.     screen resolution (pixels/inch),
  5.     screen origin (1 : upper rigth, 2 : upper left, 3 : lower left,
  6.             4 : lower right),
  7.     canvas width (pixels),
  8.     canvas height (pixels)
  9.  
  10. The first integer of the rest of the lines represents the followings;
  11.  
  12.     ELLIPSE        1
  13.     POLYLINE    2
  14.     SPLINE        3    (quadratic spline)
  15.     TEXT        4
  16.     ARC        5
  17.     BEGIN_COMPOUND    6
  18.     END_COMPOUND    -BEGIN_COMPOUND
  19.  
  20. The detail of each object is:
  21.  
  22. ARC
  23.     type (3 : circle by radius, 4 : circle by diameter, 5 : circular arc),
  24.     line_style,
  25.     thickness (pixels),
  26.     dash_length (pixels),
  27.     direction (0 : clockwise, 1 : counterclokwise),
  28.     forward_arrow (0: off, 1: on),
  29.     backward_arrow (0: off, 1: on),
  30.     arrow_ht (pixels), arrow_wid (pixels), 
  31.     center.x, center.y,
  32.     point[0].x, point[0].y, (the 1st point the user entered)
  33.     point[1].x, point[1].y, (the 2nd point or the last for type 3 or 4)
  34.     point[2].x, point[2].y  (the last point if type is 5)
  35.  
  36. BEGIN_COMPOUND
  37.     upperright_corner.x, upperright_corner.y,
  38.     lowerleft_corner.x, lowerleft_corner.y
  39.  
  40. ELLIPSE
  41.     type (1 : defined by radiuses, 2 : defined by diameters),
  42.     line_style,
  43.     thickness (pixels),
  44.     dash_length (pixels),
  45.     direction (is always 1),
  46.     center.x, center.y,
  47.     radius.x, radius.y,
  48.     start.x, start.y, (the 1st point the user entered)
  49.     end.x, end.y
  50.  
  51. LINE
  52.     type (6 : polyline, 7 : box, 8 : polygon),
  53.     line_style,
  54.     thickness (pixels),
  55.     dash_length (pixels),
  56.     forward_arrow (0: off, 1: on),
  57.     backward_arrow (0: off, 1: on),
  58.     arrow_ht (pixels), arrow_wid (pixels),
  59.     x1, y1,
  60.     x2, y2,
  61.       .
  62.       .
  63.     xn, yn,    (this will be the same as the 1st point for type 7 or 8)
  64.     9999, 9999
  65.  
  66. SPLINE (quadratic spline)
  67.     type (10: open spline, 11: closed spline),
  68.     line_style,
  69.     thickness (pixels),
  70.     dash_length (pixels),
  71.     forward_arrow (0: off, 1: on),
  72.     backward_arrow (0: off, 1: on),
  73.     arrow_ht (pixels), arrow_wid (pixels),
  74.     x1, y1,
  75.     x2, y2,
  76.       .
  77.       .
  78.     xn, yn,    (this will be the same as the 1st point for type 11)
  79.     9999, 9999
  80.  
  81. TEXT
  82.     font,  (not used)
  83.     size,  (not used)
  84.     style, (not used)
  85.     height (pixels), length (pixels),
  86.     lowerleft_corner.x (pixels), lowerleft_corner.y (pixels),
  87.     string (end at newline, \n)
  88.  
  89. There are only three line styles defined
  90.  
  91.     SOLID_LINE    0
  92.     DASH_LINE    1
  93.     DOTTED_LINE    2 (not implement)
  94.